import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx';
import { createStyleImportPlugin, VxeTableResolve } from 'vite-plugin-style-import'
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
    resolve: {
		extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
		alias: [
			{
				find: '@',
				replacement: path.resolve(__dirname, 'src'),
			},
		],
  },
  plugins: [vue(), vueJsx(), 
	createStyleImportPlugin({
		resolves: [
			VxeTableResolve()
		],
	})
	],
})
